<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>自动变焦</title>

<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />

</head>

<body>





<div class="box">
    <div class="text">
        <div style="position:relative">
              <p style="display: inline-block;">
               <span style="font-size:24px;float:left;margin-top:21px;color:#318e8b">自动变焦中</span> <h2 style="float:right" class="timer count-title" id="count-number" data-to="900" data-speed="1500">324 水电费</h2>
              </p>
            <div class="pa p1"><img width="100%" src="line.png"></div>
            <div class="pa p2"><img width="100%" src="number.png"></div>
        </div>
    </div>
    <img width="100%" src="main.jpg" alt="">
</div>


<style type="text/css" media="screen">
  .text{position:absolute;top:50%;left:50%;width:274px;height: 600px;margin: -272px -115px;}
  #count-number{color:#0efbf3;}
  .box{position:relative;}
  .pa{position:absolute;}
  .p1{width:346px;height:152px;top:94px;left:0;animation:a1 linear .3s both;opacity:0; transform:translate(100px);}
  .p2{width:314px;height:192px;top:72px;left: 24px;animation:a2 .3s linear .3s both;opacity:0; transform:translate(100px);}


@keyframes a1{
  to {
    opacity:1;
    transform:none;
  }
}

@keyframes a2{
  to {
    opacity:1;
    transform:none;
  }
}


</style>
  <script src='js/jquery.js'></script>
  <script src="js/index.js"></script>

</body>



</html>